import Request from '@/utils/request'

export const residentInfoPageGet = data => {
    return Request({
        url: '/residentInfo/page',
        method: 'post',
        data: data,
    })
}
export const residentInfoListGet = data => {
    return Request({
        url: '/residentInfo/list',
        method: 'post',
        data: data,
    })
}

export const residentInfoDelete = id => {
    return Request({
        url: '/residentInfo/delete/' + id,
        method: 'get',
    })
}

export const residentInfoOne = id => {
    return Request({
        url: '/residentInfo/one/' + id,
        method: 'get',
    })
}

export const residentInfoUpdate = data => {
    return Request({
        url: '/residentInfo/update',
        method: 'post',
        data: data
    })
}

export const residentInfoAdd = data => {
    return Request({
        url: '/residentInfo/save',
        method: 'post',
        data: data
    })
}
